//
//  LoopWebViewController.swift
//  LoopWeibo
//
//  Created by loop安 on 2016/12/29.
//  Copyright © 2016年 loop. All rights reserved.
//

import UIKit

class LoopWebViewController: UIViewController {

    
    let webView = UIWebView()
    
    var urlString:String?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        view = webView
        
        loadWebPage()
    }
    
    private func loadWebPage (){
        guard let urlStr = urlString else{
            return
        }
        
        let url = URL(string: urlStr)
        let request = URLRequest(url: url!)
        webView.loadRequest(request)
    
    }

    
}
